# SPDX-License-Identifier: Apache-2.0

if(CONFIG_BROKEN_GAS_INST)
message(WARNING "Detected assembler with broken .inst; disassembly will be unreliable")
endif()

kernel_cc_options(
  -mgeneral-regs-only -Wno-psabi -mabi=lp64
  -fno-asynchronous-unwind-tables -fno-unwind-tables
)

if(CONFIG_CPU_BIG_ENDIAN)
  kernel_cc_options(-mbig-endian)
else()
  kernel_cc_options(-mlittle-endian)
endif()

add_subdirectory(kernel)
add_subdirectory(mm)
add_subdirectory(lib)
